home *** CD-ROM | disk | FTP | other *** search
/ 100 Plus Great Games 2 / 100PLUSV2.BIN / games / 3BillyGoats.dxr / 00056_restart button.ls < prev    next >
Encoding:
Text File  |  2002-01-25  |  898 b   |  25 lines

  1. property spriteNum
  2. global gDeck, gShuffle, gPlayerHand, gCompHand, gPlayerScore, gCompScore, gCardsRemaining, gCardsSelected, gDistance, gLooper, gBridge, gSingleCardSelected1, gSingleCardSelected2, gSingleCardSelected3, gSingleCardSelected4, gSingleCardSelected5, gGoatPos, gOgrePos, gEnemyDistance, gAttack, gCardsUsed, gPaused, gCount, gEnemyCard, gGoatFlyDistance, gMultiple, gGoatScore, gOgreScore, gWait4Rest
  3.  
  4. on mouseEnter
  5.   sprite(spriteNum).member = "Gameover-MouseOver"
  6.   puppetSound(4, "continue&restart")
  7. end
  8.  
  9. on mouseLeave
  10.   sprite(spriteNum).member = "Gameover-Normal"
  11.   puppetSound(4, "continue&restart")
  12. end
  13.  
  14. on mouseUp
  15.   puppetSound(4, "reset10")
  16.   sprite(206).visible = 1
  17.   sprite(207).visible = 1
  18.   sprite(208).visible = 1
  19.   gGoatScore = 0
  20.   member("GoatScoreText").text = string(gGoatScore)
  21.   gOgreScore = 0
  22.   member("OgreScoreText").text = string(gOgreScore)
  23.   resetGame()
  24. end
  25.